import Vue from 'vue'
import Router from 'vue-router'
import Antd from 'ant-design-vue/dist/antd.css';
Vue.use(Router)
Vue.use(Antd);

export default new Router({
    mode:'history',
    base:'/huashuManager',
    routes:[
        {
            path:'/',
            component:()=>import('@/components/login'),
        },{
            path:'/paperPreview',
            component:()=>import('@/components/paperPreview'),
        },{ 
          path:'/layout',
          name: 'layout',
          component:()=>import('@/components/layout'),
          children:[{
            path:'/teacherLecture',
            component:()=>import('@/components/teacherLecture'),
          },{
            path:'/teacherLectureAdd',
            component:()=>import('@/components/teacherLectureAdd'),
          },{
            path:'/training',
            component:()=>import('@/components/training'),
          },{
            path:'/trainingAdd',
            component:()=>import('@/components/trainingAdd'),
          },{
            path:'/news',
            component:()=>import('@/components/news'),
          },{
            path:'/newsAdd',
            component:()=>import('@/components/newsAdd'),
          },{
            path:'/allianceIntroduction',
            component:()=>import('@/components/allianceIntroduction'),
          },{
            path:'/allianceUnit',
            component:()=>import('@/components/allianceUnit'),
          },{
            path:'/allianceCooperation',
            component:()=>import('@/components/allianceCooperation'),
          },{
            path:'/allianceCooperationAdd',
            component:()=>import('@/components/allianceCooperationAdd'),
          },{
            path:'/job',
            component:()=>import('@/components/job'),
          },{
            path:'/jobAdd',
            component:()=>import('@/components/jobAdd'),
          },{
            path:'/assessment',
            component:()=>import('@/components/assessment'),
          },{
            path:'/questionBank',
            component:()=>import('@/components/questionBank'),
          },{
            path:'/questionAdd',
            component:()=>import('@/components/questionAdd'),
          },{
            path:'/questionAction',
            component:()=>import('@/components/questionAction'),
          },{
            path:'/course',
            component:()=>import('@/components/course'),
          },{
            path:'/courseAdd',
            component:()=>import('@/components/courseAdd'),
          },{
            path:'/previewVideo',
            component:()=>import('@/components/previewVideo'),
          },{
            path:'/mytest',
            component:()=>import('@/components/mytest'),
          },{
            path:'/myTestEdit',
            component:()=>import('@/components/myTestEdit'),
          },{
            path:'/myExam',
            component:()=>import('@/components/myExam'),
          },{
            path:'/trainingProgram',
            component:()=>import('@/components/trainingProgram'),
          },{
            path:'/trainingProgramAdd',
            component:()=>import('@/components/trainingProgramAdd'),
          },{
            path:'/ask',
            component:()=>import('@/components/ask'),
          },{
            path:'/reply',
            component:()=>import('@/components/reply'),
          },{
            path:'/achieveAndCert',
            component:()=>import('@/components/achieveAndCert'),
          },{
            path:'/achievementDetail',
            component:()=>import('@/components/achievementDetail'),
          },{
            path:'/trainingManager',
            component:()=>import('@/components/trainingManager'),
          },{
            path:'/trainingManagerAdd',
            component:()=>import('@/components/trainingManagerAdd'),
          },{
            path:'/courseDetail',
            component:()=>import('@/components/courseDetail'),
          },{
            path:'/trainingApply',
            component:()=>import('@/components/trainingApply'),
          },{
            path:'/trainingRecord',
            component:()=>import('@/components/trainingRecord'),
          },{
            path:'/courseStatic',
            component:()=>import('@/components/courseStatic'),
          },{
            path:'/courseStaticDetail',
            component:()=>import('@/components/courseStaticDetail'),
          },{
            path:'/users',
            component:()=>import('@/components/users'),
          },{
            path:'/examineeManage',
            component:()=>import('@/components/examineeManage'),
          },{
            path:'/viewSign',
            component:()=>import('@/components/viewSign'),
          },{
            path:'/examinationAdd',
            component:()=>import('@/components/examinationAdd'),
          },{
            path:'/examineeRecord',
            component:()=>import('@/components/examineeRecord'),
          },{
            path:'/onePlusTrainingAdd',
            component:()=>import('@/components/onePlusTrainingAdd'),
          },{
            path:'/onePlusTrainingManage',
            component:()=>import('@/components/onePlusTrainingManage'),
          },{
            path:'/viewOnePlusSign',
            component:()=>import('@/components/viewOnePlusSign'),
          },{
            path:'/siteManage',
            component:()=>import('@/components/siteManage'),
          },{
            path:'/siteDetail',
            component:()=>import('@/components/siteDetail'),
          },{
            path:'/expert',
            component:()=>import('@/components/expert'),
          },{
            path:'/expertDetail',
            component:()=>import('@/components/expertDetail'),
          },{
            path:'/dataAnalysis',
            component:()=>import('@/components/dataAnalysis'),
          },{
            path:'/onePlusTrainingRecord',
            component:()=>import('@/components/onePlusTrainingRecord'),
          },{
            path:'/banner',
            component:()=>import('@/components/banner'),
          },{
            path:'/userSchool',
            component:()=>import('@/components/userSchool'),
          },{
            path:'/userAdmin',
            component:()=>import('@/components/userAdmin'),
          }]
        }
    ]
})
